package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.Work;
import cn.wolfcode.crm.mapper.WorkMapper;
import cn.wolfcode.crm.service.IWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkServiceImpl implements IWorkService {


    @Autowired
    private WorkMapper mapper;

    public void deleteByPrimaryKey(Long id) {
        mapper.deleteByPrimaryKey(id);
    }

    public void insert(Work record) {
        mapper.insert(record);

    }

    public Work selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    public List<Work> selectAll() {
        return mapper.selectAll();
    }

    public void updateByPrimaryKey(Work record) {
        mapper.updateByPrimaryKey(record);
    }

    public List<Work> queryByEmpId(Long id) {
        return mapper.queryByEmpId(id);
    }


}
